const controllers = require("../controllers/adminLogin");
const controllers1 = require("../controllers/adminVerifyLogin");
const adminVerifyAuthorization = require('../middleware/adminVerifyAuthorization');
module.exports = router => {
    router.post('/admin/login', controllers.login);
    router.post('/admin/register', controllers.register);
    router.post('/admin/sendEmailCode', controllers.sendEmail);
    router.post('/admin/user/find/verify/info', controllers.findVerifyInfo);
    router.post('/admin/verify/login', controllers1.login);
    router.get('/admin/verify/findAll', adminVerifyAuthorization(),controllers1.findVerifyList);
    router.post('/admin/verify/apply', adminVerifyAuthorization(),controllers1.verifyApplyInfo);
};
